package org.madgecko.basic.service.iface;

import org.madgecko.basic.model.Pager;
import org.madgecko.basic.model.Role;
import org.madgecko.basic.model.User;

import java.util.List;

public interface IRoleService {
    List<Role> listAllRole();
	List<Role> listRoleByUser(Integer userId);
	Role load(int id);
	Role add(Role role);
	void delete(Integer id);
	Role copyRole(Integer id);
	void update(Role role);
	Pager<Role> findRoleByCon(Integer status, String con);
}
